
cc.Class({
    extends: cc.Component,

    properties: {
        juhua : {
            default : null,
            type : cc.Node
        },
    },
    start () {
        var self = this;
        var rotate = cc.rotateTo(3, 360*5);
        var callFunc = cc.callFunc(function(){
            if(self.node){
                self.node.destroy();
            }
        });
        var sequence = cc.sequence(rotate, callFunc);
        this.juhua.runAction(sequence);
    },
    close(){
        if(this.node){
            this.node.destroy();
        }
    }
});
